<%layout("/common/_layout.html"){ %>
  <%#ajax userTable:{%>
<div class="am-g">

	<form id="form" action="../website/payConfig" method="post">
		<input type="hidden" name="moduleId" value="${moduleId}"/>
		<input type="hidden" name="pay" value="${pay}"/>
		<div class="am-u-sm-6 am-margin-left-lg am-margin-top-lg">
		
			当前配置：${moduleName}----${payName}
			<div class="am-scrollable-vertical">
		 		<table class="am-table am-table-striped am-table-hover table-main">
		 		 <thead>
			         <tr class="am-text-nowrap">
			             <th class="table-check"><input type="checkbox"  id="allCheck"/></th><th class="table-title">网点id</th><th class="table-title">名称</th>
			         </tr>
		         </thead>
				 <tbody>
				 	<%for(website in websites!){%>
				 		<tr>
				 		    <td>
			              		<input type="checkbox" name="ids" value="${website.id}" <%if (website.this_enabled!0 > 0){%>checked<%}%>>
				 			<td>${website.WebsiteId}</td>
				 			<td>${website.class_name}</td>
				 		</tr>
					<%}%>
				</tbody>
			   </table>
			</div>
		</div>
	</form>
</div>
  
<div class="am-g">
 	<div class="am-u-sm-6 am-u-md-6 am-margin-left-xl am-margin-top">
		<button type="button" name="website_save" id="website_save" class="am-btn am-btn-primary am-btn-xs">保存</button>		       
	</div>	 
</div>  
 <script type="text/javascript">
    $(function(){
    	$("#website_save").click(function(){
    		$("#form").submit();
    	});
    });
  </script>
  
<%}%>
<%}%>


